//
//  ZJPublicSPinfoImageCollectionViewCell.m
//  ZJControlsClass
//
//  Created by mac on 2024/11/12.
//

#import "ZJPublicSPinfoImageCollectionViewCell.h"

@implementation ZJPublicSPinfoImageCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self.contentView addSubview:self.img];
        
        [self.img mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.left.equalTo(self.contentView);
            make.centerY.equalTo(self.contentView.mas_centerY);
            make.height.equalTo(@(ALIGN_HEIGHT_PT(44)));
        }];
        
        
    }
    return self;
}


-(UIImageView *)img{
    if (!_img) {
        _img = [UIImageView new];
        _img.image = [UIImage imageNamed:@"banner"];
        _img.layer.cornerRadius = 2.5;
        _img.layer.masksToBounds = YES;
    }
    return _img;
}



@end

